#ifndef MAILSERVER_H
#define MAILSERVER_H

#include <QWidget>
#include <QStandardItemModel>

namespace Ui {
class MailServer;
}

class MailServer : public QWidget
{
    Q_OBJECT
    
public:
    explicit MailServer(QWidget *parent = 0);
    ~MailServer();
    
public slots:
    void    onAdd();
    void    onEdit();
    void    onDelete();
    void    onRefresh();
    void    onTest();
    void    onFirst();
    void    onPrev();
    void    onNext();
    void    onLast();

public:
    void    initHeader();
    void    updateSmtps(int page);
    void    showNavigate(int page, int all, int pagesize);
    int     getCurPage();

private:
    Ui::MailServer *ui;
    QStandardItemModel  m_model;
    std::string         m_search;
};

#endif // MAILSERVER_H
